package com.example.doctor.jpa;

import com.example.common.entity.Question;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

import java.util.List;

public interface QuestionRepository extends JpaRepository<Question,Long> {
    @Query(value = "SELECT * FROM order_question WHERE fid_bigint =?1",nativeQuery = true)
    List<Question> findByFid(Long fid);
}
